MessagingStyle

constructor(@NonNull user: Person)(source)

Creates a new MessagingStyle object. Note that Person must have a non-empty name.

Parameters

user

This Person's name will be shown when this app's notification is being replied to. It's used temporarily so the app has time to process the send request and repost the notification with updates to the conversation.


constructor(@NonNull userDisplayName: CharSequence)(source)

Deprecated

Use #MessagingStyle(Person) instead.

Parameters

userDisplayName

Required - the name to be displayed for any replies sent by the user before the posting app reposts the notification with those messages after they've been actually sent and in previous messages sent by the user added in addMessage